#include <iostream>
#include <vector>

#include "Vector.hpp"
using namespace std;

class Solution
{
public:
    int arraySign(vector<int> &nums)
    {
        int sign = 1;
        for (int num : nums)
        {
            if (num == 0)
            {
                return 0;
            }
            if (num < 0)
            {
                sign = -sign;
            }
        }
        return sign;
    }
};

int main()
{
    cout << "Code1822" << endl;
    Solution s;
    std::vector<int> nums{3,1,5,0,2,-3};
    cout << s.arraySign(nums) << endl;
    return 0;
}